package model

type User struct {
	BaseModel
	Name       string `json:"name" gorm:"type:varchar(100);index;not null;default:'';comment:用户名"`
	Avatar     string `json:"avatar" gorm:"type:varchar(200);not null;default:'';comment:头像"`
	Account    string `json:"account" gorm:"type:varchar(100);index;not null;default:'';comment:账号"`
	Password   string `json:"-" gorm:"type:varchar(255);not null;default:'';comment:密码"`
	Role       int    `json:"role" gorm:"type:int(3);not null;default:1;comment:角色 1-普通用户 99-管理员"`
	IsDisabled bool   `json:"is_disabled" gorm:"type:boolean;not null;default:false;comment:是否禁用"`
}
